

package com.hazelcast.test.starter.hz3;

import com.hazelcast.core.HazelcastInstance;

public class Hazelcast3Starter {

    /**
     * Creates a Hazelcast 3 member with Hazelcast 4 interface
     * It translates method calls using a Mockito based proxy.
     * <p>
     * It is not fully tested, see {@link Hazelcast3StarterTest} for what works.
     *
     * @param xmlConfig member xml configuration (using 3.x schema!)
     * @return Hazelcast instance
     */
    public static HazelcastInstance newHazelcastInstance(String xmlConfig) {
        return new Hazelcast3Proxy().newHazelcastInstance(xmlConfig);
    }

}
